<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
    <ui:composition template="templateMenu.xhtml">
        <ui:param name="onload" value="setFocus()" />
        <ui:define name="body">
            <rich:panel  >
                <a4j:form >
                    <rich:toolBar >
                        <h:outputText styleClass="texto_negrito" value="#{tituloJanela}" />
                        <rich:toolBarGroup location="right">
                            <ui:insert name="acoesExtras"></ui:insert>
                            <h:commandLink  immediate="true" action="#{mBean.voltar}" >
                                <h:graphicImage  style="border: none;" url="/imagens/arrow_undo.png" />
                                <h:outputText  value="#{msgs.botaoVoltar}" />
                            </h:commandLink>

                                <h:commandLink  action="#{mBean.gravar}"   rendered="#{empty rendered_btgravar ? true : rendered_btgravar}" >
                                    <h:graphicImage  style="border: none;" url="/imagens/disk.png" />
                                    <h:outputText  value="Gravar" />
                                </h:commandLink>
                            
                        </rich:toolBarGroup>
                    </rich:toolBar>
                    <h:panelGrid styleClass="panel_tabela" >

                        <ui:insert name="painelEdicao"></ui:insert>
                    </h:panelGrid>
                </a4j:form>
                <ui:insert name="formsExtras"></ui:insert>
            </rich:panel>
        </ui:define>
    </ui:composition>
</html>
